package com.ruoyi.system.api.domain.store;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.basedata.Goods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 入库记录详情对象 finer_stock_in_detail
 *
 * @author lmj
 * @date 2024-10-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StockInDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private Integer goodsId;

    //商品对象
    private Goods goods;
    private String proCode;
    private String proName;
    private String unitName;
    /**
     * 入库记录id
     */
    @Excel(name = "入库记录id")
    private Integer stockInId;

    /**
     * 入库数量
     */
    @Excel(name = "入库数量")
    private Integer num;

    /**
     * 不合格数量
     */
    @Excel(name = "不合格数量")
    private Integer noPassNum;

    /**
     * 总数量
     */
    @Excel(name = "总数量")
    private Integer totalNum;

    /**
     * 合格率
     */
    @Excel(name = "合格率")
    private Double passRate;

    /**
     * 成本
     */
    @Excel(name = "成本")
    private BigDecimal cost;
    private Integer houseId;
    private String houseName;

    /**
     * 合格成本
     */
    @Excel(name = "合格成本")
    private BigDecimal passCost;

    /**
     * 总成本
     */
    @Excel(name = "总成本")
    private BigDecimal costAll;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 修改人
     */
    @Excel(name = "修改人")
    private String modifyBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyDate;

    /**
     * 0：未删除1：已删除
     */
    @Excel(name = "0：未删除1：已删除")
    private Integer isDel;


}
